package com.ehotting.edsta.circuitDesign.groovy;

import javax.script.ScriptEngineManager;

public class ScriptEngineManagerSingleton {
    private static ScriptEngineManager scriptEngineManager;

    private static final byte[] bytes = {0};

    public static ScriptEngineManager getScriptEngineManager(){
        if (scriptEngineManager == null) {
            synchronized (bytes) {
                if (scriptEngineManager == null) {
                    scriptEngineManager = new ScriptEngineManager();
                }
            }
        }
        return scriptEngineManager;
    }
}
